import Layout from '@/layout'

export default
{
  path: '/employees',
  component: Layout,
  children: [
    {
      path: '', // 默认路由， path 为空，是默认展示此组件
      name: 'employees',
      component: () => import(/* webpackChunkName:"list-detali" */'@/views/employees/index.vue'),
      // 元信息，自定义的路由属性
      meta: { title: '员工', icon: 'people' }
    },
    // 员工详情路由
    {
      path: 'detail',
      name: 'employeesDetail',
      component: () => import(/* webpackChunkName:"list-detali" */'@/views/employees/detail.vue'),
      hidden: true
    }
  ]
}
